﻿using FreeSql.DataAnnotations;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ZhonTai.Admin.Core.Entities;

namespace ZhonTai.Industry.Domain.PLCDevice
{
    /// <summary>
    /// PLC设备
    /// </summary>
    /// <remarks>PLC设备</remarks>
    [Table(Name = "cfg_plc_device")]
    public class PLCDeviceEntity : EntityBase
    {
        /// <summary>
        /// 设备名称
        /// </summary>
        /// <remarks></remarks>
        [Column(StringLength = 100)]
        public string DeviceName { get; set; }

        /// <summary>
        /// 制造商
        /// </summary>
        /// <remarks></remarks>
        [Column(StringLength = 100)]
        public string Manufacturer { get; set; }

        /// <summary>
        /// PLC型号
        /// </summary>
        /// <remarks></remarks>
        [Column(StringLength = 64)]
        public string Model { get; set; }

        /// <summary>
        /// 序列号
        /// </summary>
        /// <remarks></remarks>
        [Column(StringLength = 64)]
        public string SerialNumber { get; set; }

        /// <summary>
        /// 固件版本
        /// </summary>
        /// <remarks></remarks>
        [Column(StringLength = 64)]
        public string FirmwareVersion { get; set; }

        /// <summary>
        /// 硬件版本
        /// </summary>
        /// <remarks></remarks>
        [Column(StringLength = 64)]
        public string HardwareVersion { get; set; }

        /// <summary>
        /// 排序
        /// </summary>
        public int Sort { get; set; }

        /// <summary>
        /// 启用
        /// </summary>
        /// <remarks>启用</remarks>
        [Column(StringLength = 64)]
        public bool Enabled { get; set; }
    }
}